import service from "@/requset/requset.js";

export function getComments(id) {
    return service({
        url: "/comment/getComment",
        params:{
            articleId:id
        }
    })
}

export function addComment(data){
    return service({
        url: "/comment/addComment",
        method: 'post',
        data:data
    })
}
export function deleteCommentApi(id){
    return service({
        url: "/comment/deleteComment",
        params:{
            id:id
        }
    })
}

export function addLikeApi(data){
    return service({
        url: "/comment/addLike",
        method:"post",
        data:data
    })
}
export function replyApi(data){
    return service({
        url: "/comment/reply",
        method: 'post',
        data:data
    })
}
export function getCommentAllApi(data){
    return service({
        url: "/comment/getCommentAll",
        method:"post",
        data:data
    })
}